package com.wangyadong.hobby.schedule.jobtask;

import groovy.lang.IntRange;

import javax.accessibility.Accessible;
import java.io.Serializable;
import java.math.BigDecimal;
import java.math.RoundingMode;
import java.util.Arrays;
import java.util.List;
import java.util.concurrent.locks.Lock;
import java.util.stream.Collectors;
import java.util.stream.IntStream;

public interface Deque<E> extends Accessible, Lock, List, Serializable {

    int size();

    boolean isEmpty();

    E first();

    E last();

    void addFirst(E e);

    void addLast(E e);

    E removeFirst();

    E removeLast();

    // 11000 10000   11001  10111
    public static void main(String[] args) {
//        List<String> strs = Arrays.asList("好,好,学", "习,天,天", "向,上");
//
//        List<String[]> strArray = strs.stream().map(str -> str.split(",")).collect(Collectors.toList());
//
//        JSONArray jsonArray = JSONArray.fromObject(strArray);
//
//        System.out.println("strArray => " + jsonArray.toString());
//
//        // flatMap与map的区别在于 flatMap是将一个流中的每个值都转成一个个流，然后再将这些流扁平化成为一个流 。
//        List<String> strList = strs.stream().map(str -> str.split(",")).flatMap(Arrays::stream)
//                .collect(Collectors.toList());
//D:\git\job-task-com-master\hobby\src\main\java\com\wangyadong\hobby\javanetwork\output
//        System.out.println("strList => " + strList);


        Integer integer = 90;
        Integer error = 90;
        System.out.println(integer + 10);
        System.out.println(error);
        System.out.println("======================" + error / integer);

    }
}